﻿using Basic.WxLocalEvent;
using Basic.WxRemoteModel.WxMsg.Model;
using Basic.WxService.ConstDic;
using Basic.WxService.Interface;
using WeDonekRpc.Client.Attr;

namespace Basic.WxService.PlatformMsg
{
    [IocName(WxPlatformEventDic.UpdateAuthorized)]
    internal class RefreshAuthorizedMsgEvent : IWxPlatformMsgEvent
    {
        public void ExecMsg (WxPlatformMsg msg)
        {
            new WxMerBindEvent
            {
                PlatformAppId = msg.PlatformAppId,
                WxAppId = msg.EventBody["AuthorizerAppid"]
            }.Public("Update");
        }
    }
}
